#CROSS_COMPILE=arm-at91-linux-gnueabi-
CXX = $(CROSS_COMPILE)g++
CXXFLAGS = -std=c++11 -I../../include 

TARGET = msgcenter sub pub
.PHONY: $(TARGET) clean
all: $(TARGET)

msgcenter: 
	$(CXX) msgcenter.cpp -o msgcenter $(CXXFLAGS) -pthread

sub:
	$(CXX) sub.cpp -o sub $(CXXFLAGS) -pthread
 
pub:  
	$(CXX) pub.cpp -o pub $(CXXFLAGS) -pthread 

clean:
	$(RM) -r $(TARGET) 
